package demo2;

public class Derived extends Base{
    public int a = 2;
    public int b;
    public int c;

    public void test() {
        /*//a = 1;
        b = 2;
        c = 3;
        System.out.println(this.a);
        System.out.println("父类的a: "+super.a);
        System.out.println(b);
        System.out.println(c);*/

        super.method() ;
    }
    public void method() {
        System.out.println("Derived::method()");
    }
    public void method(int a) {
        System.out.println("Derived::methodB()"+a);
    }

    public static void methodB() {
        System.out.println("Derived::methodB()");
        //System.out.println(super.a);
    }

}
